.class Lcom/netease/newsreader/activity/ShowColumnInMore$6;
.super Ljava/lang/Thread;
.source "ShowColumnInMore.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/ShowColumnInMore;->refresh(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

.field private final synthetic val$first:Z


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ShowColumnInMore;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    iput-boolean p2, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->val$first:Z

    .line 281
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/ShowColumnInMore$6;)Lcom/netease/newsreader/activity/ShowColumnInMore;
    .locals 1
    .parameter

    .prologue
    .line 281
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    const/16 v4, 0x14

    const/4 v2, 0x1

    const/4 v8, 0x0

    .line 283
    const/4 v7, 0x0

    .line 284
    .local v7, tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const/4 v6, 0x0

    .line 287
    .local v6, msg:Landroid/os/Message;
    iget-boolean v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->val$first:Z

    if-eqz v0, :cond_0

    .line 288
    new-instance v7, Ljava/util/ArrayList;

    .end local v7           #tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    .line 289
    .restart local v7       #tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$4(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v1

    const-string v3, "nonhead"

    invoke-static {v0, v7, v1, v3}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$27(Lcom/netease/newsreader/activity/ShowColumnInMore;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V

    .line 290
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v8}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v6

    .line 291
    iput-object v7, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 292
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 297
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 298
    new-instance v7, Ljava/util/ArrayList;

    .end local v7           #tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    .line 299
    .restart local v7       #tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$23(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 302
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    const-string v1, "http://c.3g.163.com/nc/article/headline/"

    .line 303
    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$4(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v3

    .line 301
    invoke-static {v0, v1, v3, v8, v4}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getHeadlineArticleList(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)Ljava/util/List;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 315
    :goto_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v6

    .line 316
    iput-object v7, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 317
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 333
    :goto_1
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$24(Lcom/netease/newsreader/activity/ShowColumnInMore;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 334
    new-instance v7, Ljava/util/ArrayList;

    .end local v7           #tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    .line 335
    .restart local v7       #tmpData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$28(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$4(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v1

    iget-boolean v3, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->val$first:Z

    if-eqz v3, :cond_1

    move v2, v8

    .line 336
    :cond_1
    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    .line 335
    invoke-static {v0, v1, v2, v3}, Lcom/netease/newsreader/model/Weather;->getWeatherList(Ljava/lang/String;Ljava/lang/String;ZLandroid/content/Context;)Ljava/util/List;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 337
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v6

    .line 338
    iput-object v7, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 339
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 341
    :cond_2
    return-void

    .line 305
    :cond_3
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$24(Lcom/netease/newsreader/activity/ShowColumnInMore;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 307
    const-string v0, "http://c.3g.163.com/nc/article/local/"

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$4(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$12(Lcom/netease/newsreader/activity/ShowColumnInMore;)I

    move-result v3

    .line 308
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    .line 306
    invoke-static/range {v0 .. v5}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;ZIILandroid/content/Context;)Ljava/util/List;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    .line 311
    :cond_4
    const-string v0, "http://c.3g.163.com/nc/article/list/"

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$4(Lcom/netease/newsreader/activity/ShowColumnInMore;)Ljava/lang/String;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$12(Lcom/netease/newsreader/activity/ShowColumnInMore;)I

    move-result v3

    .line 312
    iget-object v5, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    .line 310
    invoke-static {v0, v1, v3, v4, v5}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getArticleList(Ljava/lang/String;Ljava/lang/String;IILandroid/content/Context;)Ljava/util/List;

    move-result-object v0

    invoke-virtual {v7, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto/16 :goto_0

    .line 319
    :cond_5
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowColumnInMore$6;->this$0:Lcom/netease/newsreader/activity/ShowColumnInMore;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShowColumnInMore;->access$6(Lcom/netease/newsreader/activity/ShowColumnInMore;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/netease/newsreader/activity/ShowColumnInMore$6$1;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/ShowColumnInMore$6$1;-><init>(Lcom/netease/newsreader/activity/ShowColumnInMore$6;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto/16 :goto_1
.end method
